home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 019a / qe1.zip / EDITOR.DOC next >
Text File  |  1991-11-02  |  12KB  |  342 lines

  1.           Editor Manual  November 2, 1991       
  2.  
  3. Note:  Although LE is used as an example, this manual is for QE also.
  4.  
  5. Getting Started
  6. ---------------
  7.  
  8. To start the editor, enter:  LE [filename]  at the DOS prompt.
  9.  
  10. If there is no filename, the editor will use the RESTART file to open the
  11. file you last changed, at the same place you were.  If there is no RESTART
  12. file, the editor will ask you for a file name.
  13.  
  14. The filename should be a normal DOS file name, and can include a drive letter
  15. and/or a path.
  16.  
  17. If the file name which you used is not on the disk, LE will assume this is a
  18. new file that you want to create.  If the file name which you used is on this 
  19. directory, it will be opened.
  20.  
  21. After LE knows the file name, you can start entering characters by just
  22. typing them on your keyboard.  What you see on the screen is what the file
  23. will become.
  24.  
  25. Most other operations, such as moving the cursor and deleting things, are
  26. done by pressing Ctrl and some key.  A list of these control functions can
  27. be viewed by pressing F1.  The following pages provide more
  28. details about these functions.
  29.  
  30.  
  31. Moving the Cursor
  32. -----------------
  33.  
  34. These are the functions which LE provides to make it easy for you to create
  35. the program you want.  The control functions are activated by holding down the
  36. Ctrl key while pressing another key, sometimes followed by one more key. 
  37. Note that the arrows referred to are not those on the numeric key pad, but to 
  38. the left of it.  Following is a list of these functions.
  39.  
  40.  
  41. Moving the Cursor One Character
  42.  
  43.    Up 1 character:  Ctrl-E or the up arrow
  44.  Down 1 character:  Ctrl-X or the down arrow
  45. Right 1 character:  Ctrl-D or the right arrow
  46.  Left 1 character:  Ctrl-S or the left arrow
  47.  
  48. Note that the positions of the E, X, D, and S keys are in top, bottom, right,
  49. and left positions on the keyboard.  Note also that if the arrow keys (on
  50. the numeric keypad) are used, the Num Lock function should be off.
  51.  
  52. Moving the Cursor by One Word
  53.  
  54. Right one word:  Ctrl-F or Shift right arrow
  55.  Left one word:  Ctrl-A or Shift left arrow
  56.  
  57.  
  58. Moving the cursor to edges of the screen
  59.  
  60.     Top of screen:  Ctrl-QE
  61.  Bottom of screen:  Ctrl-QX
  62. Right end of line:  Ctrl-QD or End
  63.    Left of screen:  Ctrl-QS or Home
  64.  
  65. Note that the second letter of each Ctrl-Q combination corresponds to a letter
  66. in the one-character move above.
  67.  
  68. Scrolling the Screen
  69.  
  70.   Up one line:  Ctrl-W
  71. Down one line:  Ctrl-Z
  72.  
  73. Although the W and Z keys may appear to be in the wrong place for these
  74. operations, they are not, because the effect is to move the cursor in the
  75. opposite direction.
  76.  
  77. Moving the cursor by one Page
  78.  
  79.   Up one page:  Ctrl-R or Page Up
  80. Down one page:  Ctrl-C or Page Down
  81.  
  82. Note the positions of the R and C are top and bottom
  83. respectively.  Also, the Num Lock must be off to use the Pg Up and Pg Dn
  84. keys.
  85.  
  86. Moving the Cursor to Top or Bottom of File
  87.  
  88.    Top of file:  Ctrl-QR
  89. Bottom of file:  Ctrl-QC
  90.  
  91.  
  92. Finding a sequence of characters in the file
  93.  
  94. Ctrl-QF  prints a message at the top right hand corner of the screen, which
  95. asks what you want to search for.  You should then enter the string of
  96. characters you want it to find.  The entire file will be searched, starting
  97. with where the cursor is.  The search is case-sensitive - that means that if 
  98. you are searching for upper case letters, you must enter upper case letters.
  99.  
  100. If the string is not found, a message to that effect will appear in the upper
  101. right hand corner.  If the string is found, the screen will be displayed with
  102. the string in the middle of the screen, and the cursor immediately following
  103. the string.
  104.  
  105. If you want to look for another occurance of that same string further in the
  106. file, press Ctrl-L.  Multiple occurances of the same string in the same line
  107. will be ignored.
  108.  
  109. Searching and Replacing Strings
  110.  
  111. Ctrl-QA causes a message to be printed at top right, asking what string you
  112. want to replace.  Enter the string you're looking for.  It then asks what you
  113. want to replace it with.  Enter the new string.  When it finds a string to
  114. replace, it will display Yes/No/All/One/Quit, and put the cursor by the
  115. string.
  116.  
  117. If you want to replace this string and look for the next occurance of it,
  118. enter Y.  If you don't want to replace this string, but want to look for
  119. another occurance, enter N.  To replace all occurances of the string, enter A.
  120. If you want this to be the last one replaced, enter O.  To stop the process
  121. and not replace this one, enter Q.
  122.  
  123. Moving the Cursor to it's Previous Position
  124.  
  125. Ctrl-QP will move the cursor to the position it held last.
  126.  
  127. Ctrl-Kn (where n is a number from 0 through 9) will mark the current line with
  128. a symbol like this:  <n> , unless the line has already been marked, in which
  129. case the mark will be erased.
  130.  
  131. Ctrl-Qn  (where n is a number from 0 through 9) will move the cursor to the
  132. line previously marked with a Ctrl-Kn.
  133.  
  134.  
  135. Miscellaneous Control Operations
  136. --------------------------------
  137.  
  138. Getting Help
  139.  
  140. Ctrl-J or F1 displays the HELP screen, which is a summary of all control
  141. operations.  Press any key to return to where you were.
  142.  
  143. Changing the Insert Mode
  144.  
  145. Ctrl-V or Ins will turn on or turn off (toggle) the insert mode. The insert
  146. mode is displayed at the top of the screen.
  147.  
  148. When the Insert mode is on, characters entered move any characters on the
  149. right, to the right.  Also, an Enter (Return on some keyboards) inserts a new
  150. line.
  151.  
  152. When the Insert mode is off, characters entered replace any characters
  153. that may be to the right.  Also, an Enter just moves the cursor down one
  154. line and to the left-most column of that line.
  155.  
  156. Inserting a Line
  157.  
  158. Ctrl-M or Enter inserts a line if the INSERT mode is ON.  The cursor is left
  159. at the next line down.
  160.  
  161. Ctrl-N inserts a line whether the insert mode is on or off.  The cursor is
  162. always left at the begining of the new blank line.
  163.  
  164. Changing the word wrap mode
  165.  
  166. Ctrl-O toggles the word wrap mode, which is displayed at the top of the
  167. screen next to the insert mode.  When the word wrap mode is ON, you may
  168. continue typing at the end of a line, and the words will go to the next line 
  169. when you run out of space.
  170.  
  171. Reformatting a paragraph
  172.  
  173. Ctrl-B reformats a paragraph so that the maximum number of words are in each 
  174. line.  A paragraph ends with a line that has no characters in it.  Word wrap 
  175. must be ON for this command to work.
  176.  
  177. Tabs
  178.  
  179. Ctrl-I or the Tab Key causes one tab character to be put into the file.  Tabs
  180. are used to line up characters every columns.
  181.  
  182.  F2 is the same as entering 2 spaces.
  183.  
  184.  F3 is the same as entering 3 spaces.
  185.  
  186.  F4 is the same as entering 4 spaces.
  187.  
  188. Special characters
  189.  
  190. If you want one of the special graphic characters, press F7, then the three
  191. digits that is the code for that character.  These character codes can be
  192. found in your computer manual.
  193.  
  194.  
  195. Exiting
  196.  
  197.  
  198. Exit Without Save
  199.  
  200. Ctrl-KQ exits back to the system from where is was called,  without saving the
  201. current file to disk.
  202.  
  203. In other words, any changes you made while using LE are lost, and the
  204. original file remains intact.
  205.  
  206. Exit With Save
  207.  
  208. Ctrl-KX saves the current file on disk, then exits back to the the system.  So
  209. the changes you made are saved, and the original file is renamed with a .BAK
  210. extension.
  211.  
  212.  
  213. Block Operations
  214. ----------------
  215.  
  216. Blocks are groups of lines.  A block may be the whole file, or just one
  217. line, or any number of lines in between.  When a block is less than the
  218. whole file, it must be marked by the operator. 
  219.  
  220. When both the beginning and the end of a block have been marked by the
  221. operator, it appears in dim form on the screen, instead of the bright form
  222. that the rest of the file is in.  This shows the operator where the block
  223. is.
  224.  
  225. A block always consists of an integer number of lines.  That is, a block
  226. always starts at the beginning of one line, and ends at the end of another
  227. line, not in between characters on a line.  Only one block may exists at
  228. any one time.
  229.  
  230. Marking the Beginning of a block
  231.  
  232. Ctrl-KB marks or unmarks the beginning of a block to be the line that the
  233. cursor is in.  If the end of the block has not yet been marked, a dim <B> will
  234. appear at the beginning of this line.  If the end of the block has already
  235. been marked, the block will be dimmed, and the <K> at the end of the block
  236. will be erased.  If the Ctrl-KB is pushed again at the same place, the mark
  237.  will be removed.  If the Ctrl-KB is pushed again at a different place, the
  238. beginning of the block will be moved to the new place.
  239.  
  240.  
  241. Marking the End of a Block
  242.  
  243. Ctrl-KK marks or unmarks the end of a block to be the line preceeding the one
  244. that the cursor is in.  If the beginning of the block has not yet been marked,
  245. a dim <K> will appear at the beginning of the line that the cursor is in.   If
  246. the beginning of the block has already been marked, the block will be dimmed,
  247. and the <B> at the beginning of the block will be erased.   If the Ctrl-KK is
  248. pushed again at the same place, the mark will be removed.   If the Ctrl-KK is
  249. pushed again at a different place, the end of the block will be moved to the
  250. new place.
  251.  
  252. Removing Marks from a Block
  253.  
  254. Ctrl-KH will remove both beginning and ending marks of a block, thereby making
  255. it no longer a block.
  256.  
  257. Copy a Block
  258.  
  259. Ctrl-KC will copy a block to the position between the line where the cursor
  260. is, and the line above it.  The lines in the original block will remain
  261. intact, but will no longer be the block.  The lines in the new block will
  262. become the marked block.  The same block may then be copied to several
  263. different places.
  264.  
  265. Move a Block
  266.  
  267. Ctrl-KV will move a block to the position between the line where the cursor
  268. is, and the line above it.  The lines in the original block will be deleted. 
  269. The lines in the new block will become the marked block.
  270.  
  271.  
  272. Deleting a Block
  273.  
  274. Ctrl-KY deletes the lines of the current block.
  275.  
  276. Read a Block
  277.  
  278. Ctrl-KR reads a file from the disk into the space between the line where the
  279. cursor is, and the line above the cursor.  It is not marked as a block.  LE
  280. will ask for the file name in the upper right hand corner.
  281.  
  282. Write a Block
  283.  
  284. Ctrl-KW writes a marked block to a file on the disk.  LE will ask for the file
  285. name in the upper right hand corner.
  286.  
  287. Print a Block
  288.  
  289. Ctrl-P prints a block on the printer.
  290.  
  291. Saving the Whole File
  292.  
  293. Ctrl-KD renames the old file to a .BAK extension, writes the whole file to the
  294. disk, clears the screen, and asks for a new file to read in.
  295.  
  296. Ctrl-KS  renames the old file to a .BAK extension, writes the whole file to
  297. the disk, but keeps the current file on the display.
  298.  
  299. Ctrl-KX  renames the old file to a .BAK (backup) extension, writes the whole
  300. file to the disk, then exits to the calling system.
  301.  
  302.  
  303. Deleting
  304. --------
  305.  
  306. Deleting Characters
  307.  
  308. Ctrl-G or Del deletes the character at the cursor, and moves following
  309. characters to the left.
  310.  
  311. Ctrl-H or the backspace arrow deletes the character to the left of the cursor,
  312. and moves following characters to the left.
  313.  
  314. Ctrl-QY deletes all characters from the cursor to the right.
  315.  
  316. Ctrl-QH deletes all characters to the left of the cursor.
  317.  
  318. ESC deletes all characters in the line.
  319.  
  320. Deleting a Line
  321.  
  322. Ctrl-Y deletes the line that the cursor is in, and moves the lines below up
  323. one line.
  324.  
  325. Deleting a Block
  326.  
  327. Ctrl-KY deletes the current block.
  328.  
  329. Notes
  330.  
  331. The last line is always followed by a carriage-return/line-feed (cr/lf)
  332. pair in the file.  If a file is read in which does not have a cr/lf after
  333. the last line, that line will not be read, and will not appear after the file
  334. is edited.
  335.  
  336. Do not try to get help with F1 or Ctrl-J immediately after entering a Ctrl-K
  337. or Ctrl-Q.  An error message will result.  There is only one help screen in
  338. LE.
  339.  
  340.  
  341.  
  342.